package ute.mvc.service;

import java.util.List;

import ute.mvc.dto.ClassScoreDTO;
import ute.mvc.dto.TestDTO;
import ute.mvc.model.MyClass;
import ute.mvc.model.OpenCourse_Subject;
import ute.mvc.model.TestAndQuizz;
import ute.mvc.model.TestAndQuizz_Student;
import ute.mvc.model.User;

public interface TestAndQuizzService {
	public void addTestAndQuizz(TestAndQuizz testAndQuizz);
	public void updateTestAndQuizz(TestAndQuizz testAndQuizz);
	public void deleteTestAndQuizz(TestAndQuizz testAndQuizz);
	public TestAndQuizz getTestAndQuizz(String id);
	public String getMaxIdInOpenCourseSubject(OpenCourse_Subject subject);
	public List<TestAndQuizz> getTestBySubject(OpenCourse_Subject subject, User user);
	public List<MyClass> getClassByTestId(String testId);
	public void updateClasses(String testId, String classes);
	public TestAndQuizz_Student getTestAndQuizzByStudent(User student, String testId);
	
	//Vinh
	public TestDTO getTestDTO(TestAndQuizz test);
	public List<ClassScoreDTO> getScoreByClass(String testId, String classId);
}